export const phoneRules = [
  { required: true, message: "手机号码不能为空", trigger: "blur" },
  {
    validator(rule, value, callback, source, options) {
      const phoneRegex = /^1[3-9]\d{9}$/;
      if (phoneRegex.test(value)) {
        callback();
      } else {
        callback(new Error("请输入正确的手机号码"));
      }
    },
    trigger: "blur",
  },
];
